<!-- 轮播图 -->
<template>
	<view>
		<view class="uni-margin-wrap">
			<swiper class="swiper" circular indicator-dots indicator-active-color="#f1f1f1" autoplay interval="2000"
				duration="500">
				<swiper-item v-for="(item,index) in banList" :key="item.id">
					<view class="swiper-item">
						<img class="swiper-item-img" :src="item.img" />
					</view>
				</swiper-item>
			</swiper>
		</view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				banList: [
					{id:1,img:'/static/banner/banner1.png'},
					{id:2,img:'/static/banner/banner3.png'},
					{id:3,img:'/static/banner/banner2.png'}
				]
			}
		},
	}
</script>

<style>
	.uni-margin-wrap {
		width: 690rpx;
		width: 100%;
	}

	.swiper {
		height: 300rpx;
	}

	.swiper-item {
		display: block;
		height: 300rpx;
		line-height: 300rpx;
		text-align: center;
	}

	.swiper-item-img {
		width: 700rpx;
		height: 300rpx;
		border-radius: 30rpx;
	}
</style>